<!-- HTML header for doxygen 1.8.18-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Cube for iOS: CMessage类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Cube for iOS
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('interface_c_message.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">构造函数</a> &#124;
<a href="#properties">属性</a> &#124;
<a href="interface_c_message-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">CMessage类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>消息实体。  
 <a href="interface_c_message.html#details">更多...</a></p>

<p><code>#import &lt;<a class="el" href="_c_message_8h_source.html">CMessage.h</a>&gt;</code></p>
<div class="dynheader">
类 CMessage 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="interface_c_message.png" usemap="#CMessage_map" alt=""/>
  <map id="CMessage_map" name="CMessage_map">
<area href="interface_c_entity.html" title="信息实体对象。所有实体对象的基类。" alt="CEntity" shape="rect" coords="0,56,79,80"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
构造函数</h2></td></tr>
<tr class="memitem:af6a94f0cbe6b715bbc8a3681e68ff402"><td class="memItemLeft" align="right" valign="top">(instancetype)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_message.html#af6a94f0cbe6b715bbc8a3681e68ff402">initWithPayload:</a></td></tr>
<tr class="memdesc:af6a94f0cbe6b715bbc8a3681e68ff402"><td class="mdescLeft">&#160;</td><td class="mdescRight">初始化消息。  <a href="interface_c_message.html#af6a94f0cbe6b715bbc8a3681e68ff402">更多...</a><br /></td></tr>
<tr class="separator:af6a94f0cbe6b715bbc8a3681e68ff402"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee063a83e7e5ad5b80bf39dac47f67f6"><td class="memItemLeft" align="right" valign="top">(instancetype)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_message.html#aee063a83e7e5ad5b80bf39dac47f67f6">initWithJSON:</a></td></tr>
<tr class="memdesc:aee063a83e7e5ad5b80bf39dac47f67f6"><td class="mdescLeft">&#160;</td><td class="mdescRight">使用 JSON 数据初始化消息实体。  <a href="interface_c_message.html#aee063a83e7e5ad5b80bf39dac47f67f6">更多...</a><br /></td></tr>
<tr class="separator:aee063a83e7e5ad5b80bf39dac47f67f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a8c16c8e0d459519fc6359556f34967"><td class="memItemLeft" align="right" valign="top">(instancetype)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_message.html#a1a8c16c8e0d459519fc6359556f34967">initWithMessage:</a></td></tr>
<tr class="memdesc:a1a8c16c8e0d459519fc6359556f34967"><td class="mdescLeft">&#160;</td><td class="mdescRight">使用其他消息实例数据初始化消息实体。  <a href="interface_c_message.html#a1a8c16c8e0d459519fc6359556f34967">更多...</a><br /></td></tr>
<tr class="separator:a1a8c16c8e0d459519fc6359556f34967"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaeebd76caea398c5f06dbd8dac671760"><td class="memItemLeft" align="right" valign="top">(int)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_message.html#aaeebd76caea398c5f06dbd8dac671760">getScope</a></td></tr>
<tr class="memdesc:aaeebd76caea398c5f06dbd8dac671760"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取消息范围。  <a href="interface_c_message.html#aaeebd76caea398c5f06dbd8dac671760">更多...</a><br /></td></tr>
<tr class="separator:aaeebd76caea398c5f06dbd8dac671760"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3451cbfa3d73a663c88f241c8f3be65"><td class="memItemLeft" align="right" valign="top">(BOOL)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_message.html#ae3451cbfa3d73a663c88f241c8f3be65">isFromGroup</a></td></tr>
<tr class="memdesc:ae3451cbfa3d73a663c88f241c8f3be65"><td class="mdescLeft">&#160;</td><td class="mdescRight">是否来自群组。  <a href="interface_c_message.html#ae3451cbfa3d73a663c88f241c8f3be65">更多...</a><br /></td></tr>
<tr class="separator:ae3451cbfa3d73a663c88f241c8f3be65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af63627fdcc4dd9752cfe38fb718431fa"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_message.html#af63627fdcc4dd9752cfe38fb718431fa">bind:to:source:</a></td></tr>
<tr class="memdesc:af63627fdcc4dd9752cfe38fb718431fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">设置消息路由相关数据。  <a href="interface_c_message.html#af63627fdcc4dd9752cfe38fb718431fa">更多...</a><br /></td></tr>
<tr class="separator:af63627fdcc4dd9752cfe38fb718431fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae3bc33df2ca64150e2c81073207088e0"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_message.html#ae3bc33df2ca64150e2c81073207088e0">assignTS:remoteTS:</a></td></tr>
<tr class="separator:ae3bc33df2ca64150e2c81073207088e0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab88cf4dcb51b40b2fd1e525c757bfad2"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_message.html#ab88cf4dcb51b40b2fd1e525c757bfad2">assign:receiver:sourceGroup:</a></td></tr>
<tr class="separator:ab88cf4dcb51b40b2fd1e525c757bfad2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1d458183dbdeed50f5f764175f29d22"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_message.html#aa1d458183dbdeed50f5f764175f29d22">assignSender:</a></td></tr>
<tr class="separator:aa1d458183dbdeed50f5f764175f29d22"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b38a85a00d2af4ea44fb296b886f8d5"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_message.html#a7b38a85a00d2af4ea44fb296b886f8d5">assignReceiver:</a></td></tr>
<tr class="separator:a7b38a85a00d2af4ea44fb296b886f8d5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5fa8071e51003688b7ae442bfd420cc"><td class="memItemLeft" align="right" valign="top">(void)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_message.html#ac5fa8071e51003688b7ae442bfd420cc">assignSourceGroup:</a></td></tr>
<tr class="separator:ac5fa8071e51003688b7ae442bfd420cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_interface_c_entity"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_interface_c_entity')"><img src="closed.png" alt="-"/>&#160;构造函数 继承自 <a class="el" href="interface_c_entity.html">CEntity</a></td></tr>
<tr class="memitem:a9df56c58414ee99b2c6c40e400513831 inherit pub_methods_interface_c_entity"><td class="memItemLeft" align="right" valign="top">(instancetype)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_entity.html#a9df56c58414ee99b2c6c40e400513831">init</a></td></tr>
<tr class="memdesc:a9df56c58414ee99b2c6c40e400513831 inherit pub_methods_interface_c_entity"><td class="mdescLeft">&#160;</td><td class="mdescRight">默认初始化。  <a href="interface_c_entity.html#a9df56c58414ee99b2c6c40e400513831">更多...</a><br /></td></tr>
<tr class="separator:a9df56c58414ee99b2c6c40e400513831 inherit pub_methods_interface_c_entity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a94ac312167c8438992a124374d24a4 inherit pub_methods_interface_c_entity"><td class="memItemLeft" align="right" valign="top">(instancetype)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_entity.html#a2a94ac312167c8438992a124374d24a4">initWithId:</a></td></tr>
<tr class="memdesc:a2a94ac312167c8438992a124374d24a4 inherit pub_methods_interface_c_entity"><td class="mdescLeft">&#160;</td><td class="mdescRight">使用 ID 初始化。  <a href="interface_c_entity.html#a2a94ac312167c8438992a124374d24a4">更多...</a><br /></td></tr>
<tr class="separator:a2a94ac312167c8438992a124374d24a4 inherit pub_methods_interface_c_entity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c9742800966519c33c2b9dd73a5dd21 inherit pub_methods_interface_c_entity"><td class="memItemLeft" align="right" valign="top">(instancetype)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_entity.html#a8c9742800966519c33c2b9dd73a5dd21">initWithId:timestamp:</a></td></tr>
<tr class="memdesc:a8c9742800966519c33c2b9dd73a5dd21 inherit pub_methods_interface_c_entity"><td class="mdescLeft">&#160;</td><td class="mdescRight">使用 ID 和实体时间戳初始化。  <a href="interface_c_entity.html#a8c9742800966519c33c2b9dd73a5dd21">更多...</a><br /></td></tr>
<tr class="separator:a8c9742800966519c33c2b9dd73a5dd21 inherit pub_methods_interface_c_entity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac291eeedc2a27e8d04d14a83fba7ee53 inherit pub_methods_interface_c_entity"><td class="memItemLeft" align="right" valign="top">(UInt64)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_c_entity.html#ac291eeedc2a27e8d04d14a83fba7ee53">getId</a></td></tr>
<tr class="memdesc:ac291eeedc2a27e8d04d14a83fba7ee53 inherit pub_methods_interface_c_entity"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取实体 ID 。  <a href="interface_c_entity.html#ac291eeedc2a27e8d04d14a83fba7ee53">更多...</a><br /></td></tr>
<tr class="separator:ac291eeedc2a27e8d04d14a83fba7ee53 inherit pub_methods_interface_c_entity"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
属性</h2></td></tr>
<tr class="memitem:af025a2510142b49502fbae22ebe05a0c"><td class="memItemLeft" align="right" valign="top">NSString *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_message.html#af025a2510142b49502fbae22ebe05a0c">domain</a></td></tr>
<tr class="memdesc:af025a2510142b49502fbae22ebe05a0c"><td class="mdescLeft">&#160;</td><td class="mdescRight">消息所在的域。  <a href="interface_c_message.html#af025a2510142b49502fbae22ebe05a0c">更多...</a><br /></td></tr>
<tr class="separator:af025a2510142b49502fbae22ebe05a0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af08fe5b466bc522fcc92dd67fe56587e"><td class="memItemLeft" align="right" valign="top">UInt64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_message.html#af08fe5b466bc522fcc92dd67fe56587e">from</a></td></tr>
<tr class="memdesc:af08fe5b466bc522fcc92dd67fe56587e"><td class="mdescLeft">&#160;</td><td class="mdescRight">消息发送方 ID 。  <a href="interface_c_message.html#af08fe5b466bc522fcc92dd67fe56587e">更多...</a><br /></td></tr>
<tr class="separator:af08fe5b466bc522fcc92dd67fe56587e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a25318155835ecb71f77b185b45044766"><td class="memItemLeft" align="right" valign="top"><a class="el" href="interface_c_contact.html">CContact</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_message.html#a25318155835ecb71f77b185b45044766">sender</a></td></tr>
<tr class="memdesc:a25318155835ecb71f77b185b45044766"><td class="mdescLeft">&#160;</td><td class="mdescRight">消息发件人。  <a href="interface_c_message.html#a25318155835ecb71f77b185b45044766">更多...</a><br /></td></tr>
<tr class="separator:a25318155835ecb71f77b185b45044766"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac14ad3b88b6ed5fff1fe3ab7e198937b"><td class="memItemLeft" align="right" valign="top">UInt64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_message.html#ac14ad3b88b6ed5fff1fe3ab7e198937b">to</a></td></tr>
<tr class="memdesc:ac14ad3b88b6ed5fff1fe3ab7e198937b"><td class="mdescLeft">&#160;</td><td class="mdescRight">消息接收方 ID 。  <a href="interface_c_message.html#ac14ad3b88b6ed5fff1fe3ab7e198937b">更多...</a><br /></td></tr>
<tr class="separator:ac14ad3b88b6ed5fff1fe3ab7e198937b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40b5439080a740bcb9171e68c652f215"><td class="memItemLeft" align="right" valign="top"><a class="el" href="interface_c_contact.html">CContact</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_message.html#a40b5439080a740bcb9171e68c652f215">receiver</a></td></tr>
<tr class="memdesc:a40b5439080a740bcb9171e68c652f215"><td class="mdescLeft">&#160;</td><td class="mdescRight">消息收件人。  <a href="interface_c_message.html#a40b5439080a740bcb9171e68c652f215">更多...</a><br /></td></tr>
<tr class="separator:a40b5439080a740bcb9171e68c652f215"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a75bd049584abb7542fe22e7ad4ea05c1"><td class="memItemLeft" align="right" valign="top">UInt64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_message.html#a75bd049584abb7542fe22e7ad4ea05c1">source</a></td></tr>
<tr class="memdesc:a75bd049584abb7542fe22e7ad4ea05c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">消息的收发源。该属性表示消息在一个广播域里的域标识或者域 ID 。  <a href="interface_c_message.html#a75bd049584abb7542fe22e7ad4ea05c1">更多...</a><br /></td></tr>
<tr class="separator:a75bd049584abb7542fe22e7ad4ea05c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a269d082fdeaa697ecb3fc3092a8f737a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="interface_c_group.html">CGroup</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_message.html#a269d082fdeaa697ecb3fc3092a8f737a">sourceGroup</a></td></tr>
<tr class="memdesc:a269d082fdeaa697ecb3fc3092a8f737a"><td class="mdescLeft">&#160;</td><td class="mdescRight">消息的收发群组。  <a href="interface_c_message.html#a269d082fdeaa697ecb3fc3092a8f737a">更多...</a><br /></td></tr>
<tr class="separator:a269d082fdeaa697ecb3fc3092a8f737a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a030d53b540670d5fee79fac04f34f20b"><td class="memItemLeft" align="right" valign="top">UInt64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_message.html#a030d53b540670d5fee79fac04f34f20b">localTS</a></td></tr>
<tr class="memdesc:a030d53b540670d5fee79fac04f34f20b"><td class="mdescLeft">&#160;</td><td class="mdescRight">本地时间戳。  <a href="interface_c_message.html#a030d53b540670d5fee79fac04f34f20b">更多...</a><br /></td></tr>
<tr class="separator:a030d53b540670d5fee79fac04f34f20b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d7965e991d09d7f9d444a5ab9950228"><td class="memItemLeft" align="right" valign="top">UInt64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_message.html#a7d7965e991d09d7f9d444a5ab9950228">remoteTS</a></td></tr>
<tr class="memdesc:a7d7965e991d09d7f9d444a5ab9950228"><td class="mdescLeft">&#160;</td><td class="mdescRight">服务器端时间戳。  <a href="interface_c_message.html#a7d7965e991d09d7f9d444a5ab9950228">更多...</a><br /></td></tr>
<tr class="separator:a7d7965e991d09d7f9d444a5ab9950228"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41027c218e2ecd4b40df5db194bee6f1"><td class="memItemLeft" align="right" valign="top">NSDictionary *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_message.html#a41027c218e2ecd4b40df5db194bee6f1">payload</a></td></tr>
<tr class="memdesc:a41027c218e2ecd4b40df5db194bee6f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">消息负载数据。  <a href="interface_c_message.html#a41027c218e2ecd4b40df5db194bee6f1">更多...</a><br /></td></tr>
<tr class="separator:a41027c218e2ecd4b40df5db194bee6f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a931f936c7c5225b8785fd0365e445688"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_message.html#a931f936c7c5225b8785fd0365e445688">state</a></td></tr>
<tr class="memdesc:a931f936c7c5225b8785fd0365e445688"><td class="mdescLeft">&#160;</td><td class="mdescRight">消息状态描述。  <a href="interface_c_message.html#a931f936c7c5225b8785fd0365e445688">更多...</a><br /></td></tr>
<tr class="separator:a931f936c7c5225b8785fd0365e445688"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header properties_interface_c_entity"><td colspan="2" onclick="javascript:toggleInherit('properties_interface_c_entity')"><img src="closed.png" alt="-"/>&#160;属性 继承自 <a class="el" href="interface_c_entity.html">CEntity</a></td></tr>
<tr class="memitem:abe3affde8e879755ff4fd411a29e97c8 inherit properties_interface_c_entity"><td class="memItemLeft" align="right" valign="top">UInt64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_entity.html#abe3affde8e879755ff4fd411a29e97c8">identity</a></td></tr>
<tr class="separator:abe3affde8e879755ff4fd411a29e97c8 inherit properties_interface_c_entity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34ad2e7db0739633cb2f53f1d0ff64f2 inherit properties_interface_c_entity"><td class="memItemLeft" align="right" valign="top">UInt64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_entity.html#a34ad2e7db0739633cb2f53f1d0ff64f2">timestamp</a></td></tr>
<tr class="separator:a34ad2e7db0739633cb2f53f1d0ff64f2 inherit properties_interface_c_entity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba5eabe443e92b85a344c52b384344b6 inherit properties_interface_c_entity"><td class="memItemLeft" align="right" valign="top">UInt64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_entity.html#aba5eabe443e92b85a344c52b384344b6">expiry</a></td></tr>
<tr class="separator:aba5eabe443e92b85a344c52b384344b6 inherit properties_interface_c_entity"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7fe484cd3eb439c354bc0b106f20baa4 inherit properties_interface_c_entity"><td class="memItemLeft" align="right" valign="top">NSDictionary *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_c_entity.html#a7fe484cd3eb439c354bc0b106f20baa4">context</a></td></tr>
<tr class="separator:a7fe484cd3eb439c354bc0b106f20baa4 inherit properties_interface_c_entity"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>消息实体。 </p>
</div><h2 class="groupheader">函数文档</h2>
<a id="ab88cf4dcb51b40b2fd1e525c757bfad2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab88cf4dcb51b40b2fd1e525c757bfad2">&#9670;&nbsp;</a></span>assign:receiver:sourceGroup:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) assign: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_c_contact.html">CContact</a> *)&#160;</td>
          <td class="paramname"><em>sender</em></td>
        </tr>
        <tr>
          <td class="paramkey">receiver:</td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_c_contact.html">CContact</a> *)&#160;</td>
          <td class="paramname"><em>receiver</em></td>
        </tr>
        <tr>
          <td class="paramkey">sourceGroup:</td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_c_group.html">CGroup</a> *)&#160;</td>
          <td class="paramname"><em>sourceGroup</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a7b38a85a00d2af4ea44fb296b886f8d5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7b38a85a00d2af4ea44fb296b886f8d5">&#9670;&nbsp;</a></span>assignReceiver:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) assignReceiver: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_c_contact.html">CContact</a> *)&#160;</td>
          <td class="paramname"><em>receiver</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="aa1d458183dbdeed50f5f764175f29d22"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa1d458183dbdeed50f5f764175f29d22">&#9670;&nbsp;</a></span>assignSender:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) assignSender: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_c_contact.html">CContact</a> *)&#160;</td>
          <td class="paramname"><em>sender</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ac5fa8071e51003688b7ae442bfd420cc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac5fa8071e51003688b7ae442bfd420cc">&#9670;&nbsp;</a></span>assignSourceGroup:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) assignSourceGroup: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_c_group.html">CGroup</a> *)&#160;</td>
          <td class="paramname"><em>group</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="ae3bc33df2ca64150e2c81073207088e0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae3bc33df2ca64150e2c81073207088e0">&#9670;&nbsp;</a></span>assignTS:remoteTS:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) assignTS: </td>
          <td></td>
          <td class="paramtype">(UInt64)&#160;</td>
          <td class="paramname"><em>localTS</em></td>
        </tr>
        <tr>
          <td class="paramkey">remoteTS:</td>
          <td></td>
          <td class="paramtype">(UInt64)&#160;</td>
          <td class="paramname"><em>remoteTS</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="af63627fdcc4dd9752cfe38fb718431fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af63627fdcc4dd9752cfe38fb718431fa">&#9670;&nbsp;</a></span>bind:to:source:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) bind: </td>
          <td></td>
          <td class="paramtype">(UInt64)&#160;</td>
          <td class="paramname"><em>from</em></td>
        </tr>
        <tr>
          <td class="paramkey">to:</td>
          <td></td>
          <td class="paramtype">(UInt64)&#160;</td>
          <td class="paramname"><em>to</em></td>
        </tr>
        <tr>
          <td class="paramkey">source:</td>
          <td></td>
          <td class="paramtype">(UInt64)&#160;</td>
          <td class="paramname"><em>source</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>设置消息路由相关数据。 </p>

</div>
</div>
<a id="aaeebd76caea398c5f06dbd8dac671760"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaeebd76caea398c5f06dbd8dac671760">&#9670;&nbsp;</a></span>getScope</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (int) getScope </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取消息范围。 </p>

</div>
</div>
<a id="aee063a83e7e5ad5b80bf39dac47f67f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aee063a83e7e5ad5b80bf39dac47f67f6">&#9670;&nbsp;</a></span>initWithJSON:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (instancetype) initWithJSON: </td>
          <td></td>
          <td class="paramtype">(NSDictionary *)&#160;</td>
          <td class="paramname"><em>json</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>使用 JSON 数据初始化消息实体。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">json</td><td>消息的 JSON 结构。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回 <code><a class="el" href="interface_c_message.html" title="消息实体。">CMessage</a></code> 实例。 </dd></dl>

</div>
</div>
<a id="a1a8c16c8e0d459519fc6359556f34967"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1a8c16c8e0d459519fc6359556f34967">&#9670;&nbsp;</a></span>initWithMessage:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (instancetype) initWithMessage: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="interface_c_message.html">CMessage</a> *)&#160;</td>
          <td class="paramname"><em>message</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>使用其他消息实例数据初始化消息实体。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">message</td><td>源消息实例。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回 <code><a class="el" href="interface_c_message.html" title="消息实体。">CMessage</a></code> 实例。 </dd></dl>

</div>
</div>
<a id="af6a94f0cbe6b715bbc8a3681e68ff402"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af6a94f0cbe6b715bbc8a3681e68ff402">&#9670;&nbsp;</a></span>initWithPayload:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (instancetype) initWithPayload: </td>
          <td></td>
          <td class="paramtype">(NSDictionary *)&#160;</td>
          <td class="paramname"><em>payload</em></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>初始化消息。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">payload</td><td>消息的负载数据。 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>返回 <code><a class="el" href="interface_c_message.html" title="消息实体。">CMessage</a></code> 实例。 </dd></dl>

</div>
</div>
<a id="ae3451cbfa3d73a663c88f241c8f3be65"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae3451cbfa3d73a663c88f241c8f3be65">&#9670;&nbsp;</a></span>isFromGroup</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (BOOL) isFromGroup </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>是否来自群组。 </p>
<dl class="section return"><dt>返回</dt><dd>如果消息来自群组返回 <code>TRUE</code> ，否则返回 <code>FALSE</code> 。 </dd></dl>

</div>
</div>
<h2 class="groupheader">属性说明</h2>
<a id="af025a2510142b49502fbae22ebe05a0c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af025a2510142b49502fbae22ebe05a0c">&#9670;&nbsp;</a></span>domain</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (NSString*) domain</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">nonatomic</span><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>消息所在的域。 </p>

</div>
</div>
<a id="af08fe5b466bc522fcc92dd67fe56587e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af08fe5b466bc522fcc92dd67fe56587e">&#9670;&nbsp;</a></span>from</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (UInt64) from</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">nonatomic</span><span class="mlabel">assign</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>消息发送方 ID 。 </p>

</div>
</div>
<a id="a030d53b540670d5fee79fac04f34f20b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a030d53b540670d5fee79fac04f34f20b">&#9670;&nbsp;</a></span>localTS</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (UInt64) localTS</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">nonatomic</span><span class="mlabel">assign</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>本地时间戳。 </p>

</div>
</div>
<a id="a41027c218e2ecd4b40df5db194bee6f1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a41027c218e2ecd4b40df5db194bee6f1">&#9670;&nbsp;</a></span>payload</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (NSDictionary*) payload</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">nonatomic</span><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>消息负载数据。 </p>

</div>
</div>
<a id="a40b5439080a740bcb9171e68c652f215"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a40b5439080a740bcb9171e68c652f215">&#9670;&nbsp;</a></span>receiver</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="interface_c_contact.html">CContact</a>*) receiver</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">nonatomic</span><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>消息收件人。 </p>

</div>
</div>
<a id="a7d7965e991d09d7f9d444a5ab9950228"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7d7965e991d09d7f9d444a5ab9950228">&#9670;&nbsp;</a></span>remoteTS</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (UInt64) remoteTS</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">nonatomic</span><span class="mlabel">assign</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>服务器端时间戳。 </p>

</div>
</div>
<a id="a25318155835ecb71f77b185b45044766"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a25318155835ecb71f77b185b45044766">&#9670;&nbsp;</a></span>sender</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="interface_c_contact.html">CContact</a>*) sender</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">nonatomic</span><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>消息发件人。 </p>

</div>
</div>
<a id="a75bd049584abb7542fe22e7ad4ea05c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a75bd049584abb7542fe22e7ad4ea05c1">&#9670;&nbsp;</a></span>source</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (UInt64) source</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">nonatomic</span><span class="mlabel">assign</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>消息的收发源。该属性表示消息在一个广播域里的域标识或者域 ID 。 </p>

</div>
</div>
<a id="a269d082fdeaa697ecb3fc3092a8f737a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a269d082fdeaa697ecb3fc3092a8f737a">&#9670;&nbsp;</a></span>sourceGroup</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="interface_c_group.html">CGroup</a>*) sourceGroup</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">nonatomic</span><span class="mlabel">strong</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>消息的收发群组。 </p>

</div>
</div>
<a id="a931f936c7c5225b8785fd0365e445688"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a931f936c7c5225b8785fd0365e445688">&#9670;&nbsp;</a></span>state</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (int) state</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">write</span><span class="mlabel">nonatomic</span><span class="mlabel">assign</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>消息状态描述。 </p>
<dl class="section see"><dt>参见</dt><dd><a class="el" href="_c_message_state_8h.html#ac00631a438a60fc4a783ec48745bf96c" title="消息状态。">CMessageState</a> </dd></dl>

</div>
</div>
<a id="ac14ad3b88b6ed5fff1fe3ab7e198937b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac14ad3b88b6ed5fff1fe3ab7e198937b">&#9670;&nbsp;</a></span>to</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">- (UInt64) to</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">read</span><span class="mlabel">nonatomic</span><span class="mlabel">assign</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>消息接收方 ID 。 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li><a class="el" href="_c_message_8h_source.html">CMessage.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.18-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="interface_c_message.html">CMessage</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
